<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/comm :: head " ></head>
<body>
<div class="wrapper">
    <header th:replace="common/comm :: header "></header>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE" th:if="${attr == 'add' }"
                          data--w-o-w_-i-n-d-e-x="43">系统管理 >> 职位管理 >> 职位添加</font>
                    <font id="WOW_TRANSLATE_43" class="WOW_TRANSLATE_STYLE" th:if="${attr == 'update' }"
                          data--w-o-w_-i-n-d-e-x="43">系统管理 >> 职位管理 >> 职位修改</font>
                </h4>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <input id="oId" type="hidden" th:value="${oId}"/>
                                <input id="sort" type="hidden" th:value="${sort}"/>
                                <form th:action="@{'/sys/post/'+${attr}+'Save'}" method="post" id="SysUser">
                                    <div class="form-group" th:if="${attr} eq 'update'">
                                        <label for="low"> 职位编码：&nbsp;&nbsp; </label>
                                        <input type="text" name="code" th:value="${post.code}"/>
                                    </div>

                                    <div class="form-group">
                                        <label for="low"> 职位名称：&nbsp;&nbsp; </label>
                                        <input type="text" name="name" th:value="${post.name}" required="required"/>
                                    </div>

                                    <div class="form-group">
                                        <label for="low"> 职位分类：&nbsp;&nbsp; </label>
                                        <select name="sort">
                                        </select>
                                    </div>

                                    <div class="form-group">
                                        <label for="low"> 所属部门：&nbsp;&nbsp; </label>
                                        <select name="oId">
                                        </select>
                                    </div>

                                    <div class="form-group">
                                        <label for="low"> 职位描述：&nbsp;&nbsp; </label>
                                        <input type="text" name="describe" th:value="${post.describe}"/>
                                    </div>

                                    <div class="form-group">
                                        <label for="low"> 备注：&nbsp;&nbsp; </label>
                                        <textarea name="remark" th:text="${post.remark}"></textarea>
                                    </div>

                                    <div class="form-group">
                                        <label for="low">  是否启用:&nbsp;&nbsp; </label>
                                        <input style="position:static;" type="checkbox" name="isStart" th:if="${post.isStart} eq 1" value="1" checked/>
                                        <input style="position:static;" type="checkbox" name="isStart" th:if="${post.isStart} eq 0" value="0"/>
                                    </div>


                                    <input type="hidden" th:value="${post.id}" name="id"/>
                                    <div class="form-group" style="text-align: center;">
                                        <input type="submit" class="btn btn-success" value="保存"/>
                                        <input type="button" class="btn btn-danger" value="返回" onclick="javascript:history.back(-1);">
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<footer th:replace="common/comm :: common-footer"></footer>
<script th:src="@{/js_hr/post/post.js}"></script>
</html>